import { ref, type Component } from 'vue'

/**
 * 组件类型标注
 * @param _component 组件实例
 * @returns 完整类型标注的响应式组件实例
 */
export default function useComponentRef<T extends abstract new (...args: any) => any>(_component: T) {
  const comRef = ref<InstanceType<T>>()
  return comRef
}
